#include <sstream>
#include "ExcitationSystemDynamics.hpp"
#include "ExcAC6A.hpp"

#include "PU.hpp"
#include "PU.hpp"
#include "Seconds.hpp"
#include "Seconds.hpp"
#include "Seconds.hpp"
#include "Seconds.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "Seconds.hpp"
#include "PU.hpp"
#include "Seconds.hpp"
#include "Seconds.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "PU.hpp"
#include "Simple_Float.hpp"
#include "PU.hpp"
#include "Simple_Float.hpp"

using namespace CIMPP;

ExcAC6A::ExcAC6A() {};

ExcAC6A::~ExcAC6A() {};


























bool assign_ExcAC6A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ka;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ks;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ta;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_tk(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->tk;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->tb;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->tc;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vamax;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vamin;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vrmax;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vrmin;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->te;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->kh;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_tj(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->tj;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_th(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->th;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vfelim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vfelim;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_vhmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->vhmax;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->kc;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->kd;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ke;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ve1;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->seve1;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->ve2;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

bool assign_ExcAC6A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) {
	if(ExcAC6A* element = dynamic_cast<ExcAC6A*>(BaseClass_ptr1)) {
                buffer >> element->seve2;
                if(buffer.fail())
                        return false;
                else
                        return true;
        }
        else
                return false;
}

namespace CIMPP {
	BaseClass* ExcAC6A_factory() {
		return new ExcAC6A;
	}
}

void ExcAC6A::addConstructToMap(std::unordered_map<std::string, BaseClass* (*)()>& factory_map) {
	factory_map.insert(std::make_pair(std::string("cim:ExcAC6A"), &ExcAC6A_factory));
}

void ExcAC6A::addPrimitiveAssignFnsToMap(std::unordered_map<std::string, assign_function>& assign_map) {
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ka"), &assign_ExcAC6A_ka));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ks"), &assign_ExcAC6A_ks));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ta"), &assign_ExcAC6A_ta));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tk"), &assign_ExcAC6A_tk));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tb"), &assign_ExcAC6A_tb));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tc"), &assign_ExcAC6A_tc));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vamax"), &assign_ExcAC6A_vamax));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vamin"), &assign_ExcAC6A_vamin));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vrmax"), &assign_ExcAC6A_vrmax));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vrmin"), &assign_ExcAC6A_vrmin));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.te"), &assign_ExcAC6A_te));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kh"), &assign_ExcAC6A_kh));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tj"), &assign_ExcAC6A_tj));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.th"), &assign_ExcAC6A_th));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vfelim"), &assign_ExcAC6A_vfelim));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vhmax"), &assign_ExcAC6A_vhmax));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kc"), &assign_ExcAC6A_kc));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kd"), &assign_ExcAC6A_kd));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ke"), &assign_ExcAC6A_ke));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ve1"), &assign_ExcAC6A_ve1));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.seve1"), &assign_ExcAC6A_seve1));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ve2"), &assign_ExcAC6A_ve2));
	assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.seve2"), &assign_ExcAC6A_seve2));
}

void ExcAC6A::addClassAssignFnsToMap(std::unordered_map<std::string, class_assign_function>& assign_map) {
																							}

const char ExcAC6A::debugName[] = "ExcAC6A";
const char* ExcAC6A::debugString()
{
	return ExcAC6A::debugName;
}

const BaseClassDefiner ExcAC6A::declare()
{
	return BaseClassDefiner(ExcAC6A::addConstructToMap, ExcAC6A::addPrimitiveAssignFnsToMap, ExcAC6A::addClassAssignFnsToMap, ExcAC6A::debugName);
}


